package com.kermel.andromeda.engine;

import com.kermel.andromeda.engine.mock.MockCurrentTimeSubscriber;

import junit.framework.TestCase;

public class CurrentTimeSubscriberTest extends TestCase {
    private MockCurrentTimeSubscriber subscriber;
    
    protected void setUp() throws Exception {
        super.setUp();
        
        subscriber = new MockCurrentTimeSubscriber();
    }

    protected void tearDown() throws Exception {
        subscriber = null;
        
        super.tearDown();
    }

    public void testOnCurrentTimeTickDefaultsToNotificationReceivedFalse() {
        assertFalse(subscriber.isNotificationReceived());
    }
    
    public void testOnCurrentTimeTickNotificationReceivedIsTrue() {
        subscriber.onCurrentTimeTick(0);
        assertTrue(subscriber.isNotificationReceived());
    }
}
